//
//  PEVppCommonModel.h
//  PrivateApp
//
//  Created by Yan Chen on 2025/6/30.
//

#import <Foundation/Foundation.h>
#import "DevSettingOptionModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RHVppSetCommonModel : NSObject
@property (nonatomic, copy) NSString *sectionTitle;

@property (nonatomic, copy) NSString *type;//数据类型(样式) 选择项,开关项,输入项

@property (nonatomic, copy) NSString *rowTitle;

@property (nonatomic, copy) NSString *key;

@property (nonatomic, copy) NSString *enumText;//枚举选项所对应的值,用于展示

@property (nonatomic, copy) NSString *content; //如果是枚举值,存的是下标

@property (nonatomic, copy) NSString *comment; //备注

@property (nonatomic ,copy) NSString *format;//数据类型

@property (nonatomic ,copy) NSString *unit;//单位

@property (nonatomic ,copy) NSString *maxValue; //最大值

@property (nonatomic ,copy) NSString *minValue; //最小值

@property (nonatomic ,copy) NSString *ratio; // 比例

@property (nonatomic ,copy) NSString *step;//加减的步进

@property (nonatomic ,assign) BOOL isSigned;//是否有符号
//寄存器地址
@property (nonatomic ,assign) NSInteger regAddr;
//位宽
@property (nonatomic ,assign) NSInteger num;
//偏移量
@property (nonatomic ,assign) NSInteger offset;



@property (nonatomic, strong) NSArray <RHVppSetCommonModel*> *rows;

@property (nonatomic, strong) NSArray <RHVppSetCommonModel*> *items;

@property (nonatomic ,copy) NSArray<DevSettingOptionModel *> *selectList;

@property (nonatomic, assign) BOOL readOnly;

@property (nonatomic ,assign,getter=isWriteAndNotEditable) BOOL writeAndNotEditable;//智能模式下显示其他使能,不赋值,只作显示和参数下发

//读取户用锦浪逆变器数据
- (void)readHiSolarDefult:(NSDictionary *)dic;

//读取微网61度电锦浪逆变器
- (void)read61PcsJLDefult:(NSDictionary *)dic;
@end

NS_ASSUME_NONNULL_END
